@extends('Admin.layout.layout')
 @section('title')
    <title>申请救助人添加</title>
    <script type="text/javascript" charset="utf-8" src="{{asset('/public/ueditor1_4_3_3-utf8-php/utf8-php/ueditor.config.js')}}"></script>
    <script type="text/javascript" charset="utf-8" src="{{asset('/public/ueditor1_4_3_3-utf8-php/utf8-php/ueditor.all.min.js')}}"> </script>
    
    <script type="text/javascript" charset="utf-8" src="{{asset('/public/ueditor1_4_3_3-utf8-php/utf8-php/lang/zh-cn/zh-cn.jsSS')}}"></script>
    @show
@section('con')
<div class="row"> 
   <div class="col-lg-12"> 
    <h1 class="page-header">添加申请人信息</h1> 
   </div> 
   <!-- /.col-lg-12 --> 
  </div> 
  <!-- /.row --> 
  <div class="row"> 
   <div class="col-lg-12"> 
    <div class="panel panel-default"> 
     <div class="panel-heading">
      
     </div> 
     <div class="row">
      
     </div> 


     <div class="panel-body"> 
      <div class="row col-xd-4 col-xd-offset-4"> 
       <div class="col-md-6 col-md-offset-3">
       <div class="col-md-6 col-md-offset-3">
       <div class="col-md-12 col-md-offset-1">     
      <form role="form" action="{{url('/admin/askuser/update')}}" method="post">   
      <label>申请物品类型————{{$users->goods}}</label> 
       <select class="form-control" name="goods">
        @foreach($types as $k=>$v)
        <option  value="{{$v->tname}}">{{$v->tname}}</option>
        @endforeach  
        </select>
        <br>
        @if($users->type == 0)
        <label>申请类型————个人</label>
        @elseif($users->type == 1) 
        <label>申请类型————单位label>
        @endif
        <select class="form-control" name="type">
          <option value="0">个人</option>
          <option value="1">单位</option>         
        </select>
        <br>
        <div class="form-group"> 
          <label>申请人或单位名称</label> 
          <input class="form-control" name="name" value="{{$users->name}}" /> 
        </div class="row col-md-6 col-offset-3"> 
        <div class="form-group"> 
          <label>申请数量</label> 
          <input class="form-control" name="num"  value="{{$users->num}}" /> 
        </div class="row col-md-6 col-offset-3"> 
        <div class="form-group"> 
          <label>申请人或单位地址</label> 
          <input class="form-control" name="address"  value="{{$users->address}}" /> 
        </div class="row col-md-6 col-offset-3">
        <div class="form-group"> 
          <label>联系人</label> 
          <input class="form-control" name="uname"  value="{{$users->uname}}" /> 
        </div class="row col-md-6 col-offset-3">
        <div class="form-group"> 
          <label>联系电话</label> 
          <input class="form-control" name="phone"  value="{{$users->phone}}" /> 
        </div class="row col-md-6 col-offset-3">
        <div class="form-group"> 
          <label>申请原因简介</label> 
          <textarea name="words" id="" cols="63" rows="10"  value="">{{$users->words}}</textarea>
        </div class="row col-md-6 col-offset-3">
        <input type="hidden" name="id" value="{{$users->id}}">       
        <button class="btn btn-success" type="submit">确认修改</button>
         {{csrf_field()}}         
        </form>
         <div class="form-group"> 
         </div>  
       <!-- /.col-lg-6 (nested) --> 
       </div>
       </div>
      </div> 
      <!-- /.row (nested) --> 
     </div> 
     <!-- /.panel-body --> 
    </div> 
    <!-- /.panel --> 
   </div> 
   <!-- /.col-lg-12 --> 
  </div> 
  <!-- /.row --> 

           


@endsection
@section('js')
    <script type="text/javascript">
   
        var ue = UE.getEditor('editor');

    </script>
@endsection